#include "notice.h"
#include "ui_notice.h"
#include<QPlainTextEdit>
#include<QVBoxLayout>
#include<QWidget>
#include<QDebug>
#include<QPushButton>
Notice::Notice(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Notice)
{
    ui->setupUi(this);
    connect(ui->pushButton,&QPushButton::clicked,[=](){
        //发一个信号过去
        emit  this->back_1();
    });
}

Notice::~Notice()
{
    delete ui;
}
void Notice::on_pushButton_clicked()
{
    QString f=ui->plainTextEdit->toPlainText();
      notice_S_and_ass::nnotice=f;//更新公告信息
      ui->plainTextEdit->clear();
      close();
}

